package com.pds.web.testOrganizationInfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pds.web.testOrganizationInfo.domain.PdsTestOrganizationInfo;

import java.util.List;
import java.util.Map;

public interface IPdsTestOrganizationInfoService extends IService<PdsTestOrganizationInfo> {

    /**
     * 新增
     *
     * @param pdsTestOrganizationInfo
     * @return
     */
    Boolean addInfo(PdsTestOrganizationInfo pdsTestOrganizationInfo);

    /**
     * 删除 -- 根据id
     *
     * @param id
     */
    Boolean deleteInfo(Long id);

    /**
     * 更新
     *
     * @param pdsTestOrganizationInfo
     */
    Boolean updateInfo(PdsTestOrganizationInfo pdsTestOrganizationInfo) throws Exception;

    /**
     * 查询 -- 分页/条件：userId，status
     *
     * @param pdsTestOrganizationInfo
     * @return
     */
    List<PdsTestOrganizationInfo> selectInfoList(PdsTestOrganizationInfo pdsTestOrganizationInfo);

    /**
     * 保存机构检测范围
     * @param map
     *          - organizationId 机构id
     *          - categoryIds 检测范围科目id
     * @return
     */
    void addOrganizationCategory(Map map);

    /**
     * 查询机构检测范围
     * organizationId 机构id
     * @return
     */
    List<String> getOrganizationCategory(String organizationId);

    /**
     * 启用、禁用机构
     * @param id
     * @param status
     */
    void updateStatus(Long id, String status);

    /**
     * 批量导入检测机构
     * @param list
     */
    void batchInsert(List<PdsTestOrganizationInfo> list) throws Exception;
}
